import request from '../utils/request';
import { AxiosRequestConfig } from 'axios'
let fmToken = localStorage.getItem('ms_token');
export const fetchData = () => {
    return request({
        url: './table.json',
        method: 'get'
        
    });
};
export const UploadImage =(images: any): Promise<unknown> => {
    return request({
        url:`/fm/api/upload/image`,
        method: 'post',
        timeout:  60 * 1000,
        data:images,
    });
};
export const UploadImageQN =(images: any): Promise<unknown> => {
    return request({
        url:`/fm/api/upload/image/qn`,
        method: 'post',
        timeout:  60 * 1000,
        data:images,
    });
};